package com.banshuibao.bsb_android.database;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

/**
 * Created by wangpan on 2018/5/18.
 */

public class DataBaseHelper extends SQLiteOpenHelper {
    public static final String DB_NAME="query.db";
    public static final int DB_VERSION=1;
    public static final String CREATE_BASE = "create table history (id integer primary key autoincrement,title text, readDate long);";
    public DataBaseHelper(Context context,  SQLiteDatabase.CursorFactory factory) {
        super(context, DB_NAME, factory, DB_VERSION);
    }

    @Override
    public void onCreate(SQLiteDatabase db) {
        db.execSQL(CREATE_BASE);
    }

    @Override
    public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {

    }
}
